 /**
 * @(#) StartupCommand.as
 *
 * @date		2009. 02. 17.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 시작을 처리하는 Command
 * 				 
 */
package com.skt.common_hr.welfare.controller
{
	import com.skt.common_hr.welfare.model.BankAccountProxy;
	import com.skt.common_hr.welfare.model.StatementUrlProxy;
	import com.skt.common_hr.welfare.model.WelfareApprovalProxy;
	import com.skt.common_hr.welfare.model.WelfareCodesProxy;
	import com.skt.common_hr.welfare.model.WelfareDetailProxy;
	import com.skt.common_hr.welfare.model.WelfareListProxy;
	import com.skt.common_hr.welfare.model.WelfareYearProxy;
	import com.skt.common_hr.welfare.model.popWelfareHistoryProxy;
	import com.skt.common_hr.welfare.view.WelfareMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{
		
		override public function execute(note:INotification):void
		{
			var app:Welfare = note.getBody() as Welfare;
			trace("execute startupCommand in Welfare Module");
			
			facade.registerProxy(new WelfareYearProxy());
			facade.registerProxy(new WelfareCodesProxy());
			facade.registerProxy(new WelfareListProxy());
			facade.registerProxy(new WelfareDetailProxy());
			facade.registerProxy(new BankAccountProxy());
			facade.registerProxy(new popWelfareHistoryProxy());
			facade.registerProxy(new WelfareApprovalProxy());
			facade.registerProxy(new StatementUrlProxy() );
			
			
			
			
			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new WelfareMediator(app.view));
		}
	}
}